﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_ThietLapHoaDon : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CmdChon")]
        private Button _CmdChon;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("PictureBox1")]
        private PictureBox _PictureBox1;
        [AccessedThroughProperty("RadGTGT")]
        private RadioButton _RadGTGT;
        [AccessedThroughProperty("RadHDBH")]
        private RadioButton _RadHDBH;
        [AccessedThroughProperty("updSoLien")]
        private NumericUpDown _updSoLien;
        private IContainer components;
        private clsMauHoaDon objMHD;

        public Frm_ThietLapHoaDon()
        {
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.objMHD = new clsMauHoaDon();
            this.InitializeComponent();
        }

        private void CmdChon_Click(object sender, EventArgs e)
        {
            string pLoaiHoaDon = "";
            if (this.RadGTGT.Checked)
            {
                pLoaiHoaDon = "GTGT";
            }
            else
            {
                pLoaiHoaDon = "HDBH";
            }
            if (!this.objMHD.CreateMauHoaDon(pLoaiHoaDon, this.updSoLien.Value.ToString()))
            {
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.GroupBox1 = new GroupBox();
            this.RadGTGT = new RadioButton();
            this.RadHDBH = new RadioButton();
            this.Label1 = new Label();
            this.updSoLien = new NumericUpDown();
            this.Panel1 = new Panel();
            this.CmdChon = new Button();
            this.Panel2 = new Panel();
            this.PictureBox1 = new PictureBox();
            this.Label2 = new Label();
            this.GroupBox1.SuspendLayout();
            this.updSoLien.BeginInit();
            this.Panel1.SuspendLayout();
            this.Panel2.SuspendLayout();
            ((ISupportInitialize) this.PictureBox1).BeginInit();
            this.SuspendLayout();
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.RadGTGT);
            this.GroupBox1.Controls.Add(this.RadHDBH);
            this.GroupBox1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            Point point = new Point(0x41, 0x61);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            Size size = new Size(0x19c, 100);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Loại h\x00f3a đơn sử dụng";
            this.RadGTGT.AutoSize = true;
            this.RadGTGT.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(0x43, 0x3d);
            this.RadGTGT.Location = point;
            this.RadGTGT.Name = "RadGTGT";
            size = new Size(160, 0x11);
            this.RadGTGT.Size = size;
            this.RadGTGT.TabIndex = 1;
            this.RadGTGT.Text = "H\x00f3a đơn gi\x00e1 trị gia tăng";
            this.RadGTGT.UseVisualStyleBackColor = true;
            this.RadHDBH.AutoSize = true;
            this.RadHDBH.Checked = true;
            this.RadHDBH.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(0x43, 0x1d);
            this.RadHDBH.Location = point;
            this.RadHDBH.Name = "RadHDBH";
            size = new Size(0x83, 0x11);
            this.RadHDBH.Size = size;
            this.RadHDBH.TabIndex = 0;
            this.RadHDBH.TabStop = true;
            this.RadHDBH.Text = "H\x00f3a đơn b\x00e1n h\x00e0ng";
            this.RadHDBH.UseVisualStyleBackColor = true;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            this.Label1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(0x80, 0xdb);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x9c, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 1;
            this.Label1.Text = "Số li\x00ean một lần in h\x00f3a đơn";
            this.updSoLien.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            point = new Point(0x12b, 0xd9);
            this.updSoLien.Location = point;
            decimal num = new decimal(new int[] { 9, 0, 0, 0 });
            this.updSoLien.Maximum = num;
            num = new decimal(new int[] { 2, 0, 0, 0 });
            this.updSoLien.Minimum = num;
            this.updSoLien.Name = "updSoLien";
            size = new Size(0x54, 20);
            this.updSoLien.Size = size;
            this.updSoLien.TabIndex = 2;
            num = new decimal(new int[] { 2, 0, 0, 0 });
            this.updSoLien.Value = num;
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdChon);
            this.Panel1.Dock = DockStyle.Bottom;
            point = new Point(0, 0xf5);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            size = new Size(0x216, 0x27);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 3;
            this.CmdChon.DialogResult = DialogResult.OK;
            this.CmdChon.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.CmdChon.Image = ACCOUNTING.My.Resources.Resources._Select;
            this.CmdChon.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x1be, 3);
            this.CmdChon.Location = point;
            this.CmdChon.Name = "CmdChon";
            size = new Size(0x55, 0x21);
            this.CmdChon.Size = size;
            this.CmdChon.TabIndex = 0;
            this.CmdChon.Text = "Chọn";
            this.CmdChon.UseVisualStyleBackColor = true;
            this.Panel2.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel2.Controls.Add(this.PictureBox1);
            this.Panel2.Controls.Add(this.Label2);
            this.Panel2.Dock = DockStyle.Top;
            point = new Point(0, 0);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(0x216, 0x5b);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 4;
            this.PictureBox1.BackColor = Color.Transparent;
            this.PictureBox1.BackgroundImage = ACCOUNTING.My.Resources.Resources.MagiciansWarningLogo;
            this.PictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            point = new Point(0x15, 7);
            this.PictureBox1.Location = point;
            this.PictureBox1.Name = "PictureBox1";
            size = new Size(0x63, 0x4c);
            this.PictureBox1.Size = size;
            this.PictureBox1.TabIndex = 1;
            this.PictureBox1.TabStop = false;
            this.Label2.BackColor = Color.Transparent;
            this.Label2.Font = new Font("Microsoft Sans Serif", 10f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.Label2.ForeColor = Color.Red;
            point = new Point(120, 30);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(0x18c, 0x26);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0;
            this.Label2.Text = "Cẩn thận! Th\x00f4ng tin n\x00e0y chỉ được thiết lập duy nhất một lần, kh\x00f4ng thể chỉnh sửa trong qu\x00e1 tr\x00ecnh sử dụng chương tr\x00ecnh !";
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x216, 0x11c);
            this.ClientSize = size;
            this.Controls.Add(this.Panel2);
            this.Controls.Add(this.Panel1);
            this.Controls.Add(this.updSoLien);
            this.Controls.Add(this.Label1);
            this.Controls.Add(this.GroupBox1);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_ThietLapHoaDon";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "HOA DON SU DUNG";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.updSoLien.EndInit();
            this.Panel1.ResumeLayout(false);
            this.Panel2.ResumeLayout(false);
            ((ISupportInitialize) this.PictureBox1).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        internal virtual Button CmdChon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdChon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdChon_Click);
                if (this._CmdChon != null)
                {
                    this._CmdChon.Click -= handler;
                }
                this._CmdChon = value;
                if (this._CmdChon != null)
                {
                    this._CmdChon.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual PictureBox PictureBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._PictureBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._PictureBox1 = value;
            }
        }

        internal virtual RadioButton RadGTGT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._RadGTGT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._RadGTGT = value;
            }
        }

        internal virtual RadioButton RadHDBH
        {
            [DebuggerNonUserCode]
            get
            {
                return this._RadHDBH;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._RadHDBH = value;
            }
        }

        internal virtual NumericUpDown updSoLien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._updSoLien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._updSoLien = value;
            }
        }
    }
}

